package com.xd.service.admin.XTGLY.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xd.Entity.addBrandProductEntityImpr;
import com.xd.Mapper.BrandMapper;
import com.xd.service.admin.XTGLY.selectBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.CommonPojo;
import java.util.List;
@Service
public class selectBrandServiceImpl implements selectBrandService {
    @Autowired
    BrandMapper brandtMapper;


    public PageInfo<addBrandProductEntityImpr> selectBrandIf(CommonPojo commonPojo) {
        PageHelper.startPage(commonPojo.getPageNum(), commonPojo.getPageSize());
        List<addBrandProductEntityImpr> brandList = brandtMapper.queryBrands(commonPojo);
        return new PageInfo<>(brandList);
    }

}
